<?php
/**
 * Created by PhpStorm.
 * User: mj
 * Date: 17-6-7
 * Time: 下午2:11
 */

namespace App\Winged\Patients\Api;


class Auth extends Api
{
    public static $actions = [
        'login'     => 'login',
        'info'      => 'doctor/info',
    ];

    public static $needToken = false ;

    /**
     * @param $credentials ['name' => 'xxx' , 'password' => 'xxx']
     */
    public static function login($credentials)
    {
        return self::doPost('login' , $credentials);
    }



}
